package jp.dodododo.aop.interceptors;

import jp.dodododo.aop.annotation.Enhance;

import org.aopalliance.intercept.Invocation;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * {@.en }
 * 
 * <br />
 * 
 * {@.ja }
 * 
 * @author Satoshi Kimura
 */
@Enhance(false)
public class TraceWithCustomLoggerInterceptor extends TraceInterceptor {

	private static final TraceWithCustomLoggerInterceptor INSTANCE = new TraceWithCustomLoggerInterceptor();

	public static TraceWithCustomLoggerInterceptor getInstance() {
		return INSTANCE;
	}

	@Override
	protected Log getLogger(Invocation invocation) {
		return LogFactory.getLog(getTargetClass(invocation));
	}

}
